simplifying an expression using distributive property